<?php
function plink($href,$s='',$target='',$class='',$id='',$events=''){
echo'<a href="',$href,'"',
(bnotempty($target))?' target="'.$target.'"':'',
(bnotempty($class))?' class="'.$class.'"':'',
(bnotempty($id))?' id="'.$id.'"':'',
' ',$events,'>',
(bnotempty($s))?$s:$href,
'</a>';
}
?>
